package com.ruoyi.farm.api.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售记录对象 t_sale
 * 
 * @author Andy
 * @date 2022-07-26
 */
public class Sale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 牛只ID */
    @Excel(name = "牛只ID")
    private Long cattleId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 销售日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /** 销售员 */
    @Excel(name = "销售员")
    private String salesmen;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 删除标识 */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCattleId(Long cattleId) 
    {
        this.cattleId = cattleId;
    }

    public Long getCattleId() 
    {
        return cattleId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSaleDate(Date saleDate) 
    {
        this.saleDate = saleDate;
    }

    public Date getSaleDate() 
    {
        return saleDate;
    }
    public void setSalesmen(String salesmen) 
    {
        this.salesmen = salesmen;
    }

    public String getSalesmen() 
    {
        return salesmen;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cattleId", getCattleId())
            .append("price", getPrice())
            .append("saleDate", getSaleDate())
            .append("salesmen", getSalesmen())
            .append("weight", getWeight())
            .append("customerId", getCustomerId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
